function [ A ] = RandomPlayer( A, color, t )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
    
    if exist([pwd,'/players/RandomPlayer'],'dir')
        display([pwd,'/players/RandomPlayer'])
        addpath(genpath([pwd,'/players/RandomPlayer']));
    end
        
    
    B = GetValidFields2(A,color);
    
    [ValidRow ValidColumn] = find(B);
    
    %no valid move to make
    if length(ValidRow)<1
        return;
    end
    
    %get random move/index
    len = length(ValidRow);
    index = round(rand*100);
    index = mod(index,len)+1;
    
    
    
    A = make_move(A, ValidRow(index), ValidColumn(index), color);

end

